/**
 * 弹窗配置
 * 系统配置 system-config
 */
const popConfig = {
  'system-config': {
    'system-config-add': {
      popTitle: '新增配置',
      popType: 'AddSystemConfig',
      visible: true,
      popConfig: {
        width: '50%',
        destroy: true,
        popType: 'add'
      }
    },
    'system-config-edit': {
      popTitle: '编辑配置',
      popType: 'AddSystemConfig',
      visible: true,
      popConfig: {
        width: '50%',
        destroy: true
      }
    },
    'system-config-delete': {
      showType: 'confirm',
      confirmHeader: '提示',
      confirmContent: '确认删除XXX的配置信息？',
      splitProp: 'label',
      paramsProp: { id: 'id' },
      path: 'systemConfig.deleteById'
    },
    'system-config-import': {
      popTitle: '导入',
      popType: 'AddFile',
      visible: true,
      popConfig: {
        width: '50%',
        hideFooterBtn: true,
        // 上传接口
        upLoadPath: '/energy-carbon/grass-core/config/upload',
        // 模板下载参数
        tplName: 'configRenderer'
      }
    },
    'system-config-deleteBatch': {
      showType: 'confirm',
      dataType: 'multipleList',
      confirmHeader: '提示',
      confirmContent: '确认批量删除XXX的配置信息？',
      splitProp: 'label',
      paramsProp: { ids: 'id' },
      path: 'systemConfig.batchDelete'
    }
  }
}

export default {}
export { popConfig }
